| fruit_size_categorical | conspicuousness | count | median_height | mean_height |
|---|---|---|---|---|
| large | conspicuous | 63 | 15.0 | 14.603175 |
| large | cryptic | 141 | 10.0 | 12.167589 |
| small | conspicuous | 591 | 5.0 | 9.654315 |
| small | cryptic | 828 | 8.5 | 12.831860 |
Palms & Plots: Visualizing Trait Diversity in Palm Tree Dataset
INFO 526 - Summer 2024 - Final Project
Abstract
This project explores the ecological and morphological diversity of palm species using the PalmTraits 1.0 dataset, a comprehensive collection of trait data for 2,539 palm species curated by Kissling et al. (2019). By leveraging data visualization techniques in R with ggplot2 and related packages, we aim to uncover patterns and insights about trait variation across species, growth forms, and biogeographical regions.
Introduction
Palm trees are known for their structural diversity, ranging from short species to towering tree-like forms. In addition to their physical structure, palms also display wide variation in their reproductive traits, including fruit size and fruit conspicuousness. These traits play an essential role in ecological processes such as seed dispersal, which contributes to the long-term survival and distribution of palm species.
Question 1: Which palm traits exhibit the most variability across species, and how do fruit traits (size and conspicuousness) relate to stem height?
Introduction
In this part of the project, we focus on exploring how the structural form of palm trees, specifically their maximum stem height, relates to key reproductive traits: fruit size and fruit conspicuousness. We aim to investigate whether taller palms are more likely to produce larger and more visible fruits, which could be an adaptive strategy to improve seed dispersal by attracting animal disperses such as birds or mammals.
To conduct this analysis, we work with a subset of the PalmTraits dataset, focusing only on the variables relevant to our research question. We apply ridge plots to explore how palm height is distributed across different fruit size categories and levels of fruit conspicuousness. These plots help reveal whether there are noticeable differences in height between groups. In addition, we use a violin plot that combines both fruit size and conspicuousness, providing a more detailed view of how these two reproductive traits together relate to palm height. Visualizations allow us to identify potential patterns and ecological relationships between structural and reproductive traits in palms.
Approach
To explore the relationship between palm height and fruit traits, we use a visual analysis approach based on the PalmTraits dataset. Specifically, we investigate how maximum stem height max_stem_height_m relates to two key fruit traits: fruit size fruit_size_categorical, categorized as small or large and fruit conspicuousness conspicuousness, categorized as cryptic or conspicuous)].
We begin by filtering the dataset to retain only the relevant variables and removing any records with missing values. This ensures that our analysis is based on clean, complete data. The three variables selected for this analysis—palm height, fruit size, and fruit conspicuousness—allow us to examine how reproductive traits may be associated with structural form.
For visual exploration, we use ridge plots to compare the height distributions across different fruit size and conspicuousness groups. These plots provide an intuitive way to observe whether taller palms tend to produce larger or more visible fruits. We also create a violin plot that combines fruit size and conspicuousness to examine how these traits interact with palm height. The violin plot provides additional insight into the distribution and variability of height within each trait combination.
Visualizations
To explore the relationship between palm height and fruit traits, we use ridge plots and a violin plot based on three key variables from the PalmTraits dataset: max_stem_height_m (maximum stem height), fruit_size_categorical (fruit size: small or large), and conspicuousness (fruit visibility: cryptic or conspicuous). The plots help reveal how palm height varies across different trait combinations.
Visual outcomes
The ridge plots provide a clear visual comparison of how palm height varies with fruit size and fruit conspicuousness. In the first ridge plot, we observe that palms with large fruits tend to have greater stem heights compared to those with small fruits. The overall height distribution for large-fruited palms extends further, suggesting that larger fruits are more common in taller species.
A similar pattern is visible in the second ridge plot, which focuses on fruit conspicuousness. Palms with conspicuous (bright and easily visible) fruits generally show higher stem heights than those with cryptic (dull) fruits. This indicates that palms producing more visible fruits may also be taller, possibly to improve fruit visibility for animal seed disperses.
The violin plot, which combines both fruit size and conspicuousness, provides additional insight into how these traits interact with palm height. The tallest palms in the dataset tend to belong to the group with large, conspicuous fruits. This group not only shows greater median heights but also higher variability in stem height, compared to palms with small or cryptic fruits.
Discussion
The results of our visual analysis reveal clear patterns suggesting that fruit traits and palm height are not independent but may be ecologically linked. The ridge plots show that palms with large fruits generally grow taller than those with small fruits. A similar pattern is observed for fruit conspicuousness, where palms producing conspicuous (bright, visible) fruits also tend to have greater stem heights compared to those with cryptic (dull) fruits. These trends support the idea that taller palms may invest in larger or more visible fruits as a reproductive strategy to enhance seed dispersal.
The violin plot further strengthens this interpretation by combining both fruit size and conspicuousness in a single visualization. It clearly shows that palms with large, conspicuous fruits have the tallest median stem heights and the widest distribution of heights. In contrast, palms with small or cryptic fruits tend to be shorter on average. This suggests that reproductive and structural traits in palms may evolve together to maximize the chances of successful seed dispersal, particularly in taller species.
Question 2: Do defense traits like spines on leaves and stems co-occur with particular growth habits (climbing vs erect palms)?
Introduction
To answer this question, we investigate whether the presence of defense traits spines on leaves and stems co-occurs with particular growth habits in palms. Specifically, we ask whether erect and climbing palms differ in their likelihood of having spines, and whether these spines tend to occur on leaves, stems, or both. We use the growth_form variable such as climbing, erect, mixed and two binary defense variables from the PalmTraits dataset, leaves_armed and stem_armed. We combine these into a single spine trait combination like both armed, leaf only, stem only, unarmed and visualize their co-occurrence using a heatmap. The heatmap displays the species count and proportion of each spine combination within each growth form category, helping to reveal patterns in how defense traits and growth forms are associated.
Approach
We analyzed a subset of the PalmTraits dataset containing information on growth form and the presence of spines on leaves and stems. The focus is on three variables: growth_form (categorized as climbing, erect, or mixed), leaves_armed, and stem_armed, and removed any rows with missing data to ensure a complete dataset. Next, we combined the two defense traits into a single categorical variable representing four spine trait combinations: both armed, leaf only, stem only, and unarmed.
We then summarized the number of species and calculated the proportion of each spine trait combination within each growth form category to allow for proportional comparison across groups.
Finally, we visualized these co-occurrence patterns using a heatmap that displays both the species count and proportion for each combination.
Visualization
To explore the relationship between growth form and defense traits in palms, we use a heatmap based on three key variables from the PalmTraits dataset: growth_form (categorized as climbing, erect, or mixed), leaves_armed, and stem_armed. The two defense variables are combined into a single spine trait category (both armed, leaf only, stem only, unarmed), allowing us to summarize defense strategies.
Visual Outcomes
The heatmap provides a clear visual summary of how defense traits co-occur with different growth forms in palms. Among climbing palms, the most common defense strategy is having spines on both leaves and stems, representing the majority of species in this growth form. In contrast, erect palms are most frequently armed only on the stem, with a much smaller proportion having spines on both leaves and stems. The mixed growth form group shows more balanced proportions across spine trait combinations but includes fewer species overall. These patterns suggest that climbing palms may rely on strong physical defenses across multiple parts of the plant, while erect palms may prioritize stem defenses, possibly reflecting differences in their ecological exposure and defense needs. Some spine and growth form combinations are rare or nearly absent. For example, almost no erect palms have both leaf and stem spines, and “Leaf Only” defence is uncommon in all growth forms.
Discussion
Our analysis shows that climbing palms are most likely to have spines on both leaves and stems, suggesting strong defense against herbivores. Erect palms more often have spines only on the stem, possibly reflecting their greater exposure. Some combinations, like unarmed climbing palms, are rare or absent, indicating certain defense-growth form pairings are uncommon. The mixed growth form palms show no clear defense pattern, but species counts are low. These patterns suggest that defense traits in palms are shaped by their growth form and ecological pressures.
Future Work
Future research could explore how the relationship between growth form and defense traits varies across different geographical regions and ecological environments. By integrating spatial data, such as the native range or habitat type of each species, we can investigate whether certain defense strategies are more common in specific continents, climates, or ecosystems.